<extend name="Public/base"/>
<block name="body">
  
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>

	    <div  class="with-padding">
                <div class="fl">
                    <a href="{:U('addClass')}" class="btn btn-ajax btn-success btn">新增</a>&nbsp;<button class="btn ajax-post btn-info btn" url="/web2016/index.php?s=/admin/keti/setcategorystatus.html&amp;status=1" target-form="ids">启用</button>&nbsp;<button class="btn ajax-post btn-warning btn" url="/web2016/index.php?s=/admin/keti/setcategorystatus.html&amp;status=0" target-form="ids">禁用</button>&nbsp;<button class="btn ajax-post btn-danger btn" url="/web2016/index.php?s=/admin/keti/setcategorystatus.html&amp;status=-1" target-form="ids">删除</button>&nbsp;

                                <!-- 选择框select -->
                    <div style="float: right;">
                        <style>
                            .oneselect{
                                display: inline-block;
                                margin-left: 10px;
                            }
                            .oneselect .title{
                                float: left;
                                line-height: 32px;
                            }
                            .oneselect .select_box{
                                float: left;
                                line-height: 32px;
                            }
                            .oneselect .select_box select{
                                min-width: 200px;
                            }
                        </style>
                        <form id="selectForm" method="get" action="/web2016/index.php?s=/admin/keti/index.html" class="form-dont-clear-url-param">
                            <input name="" value="Array" type="hidden">
                                            </form>
                    </div>
                </div>


            </div>

  <!-- 数据表格 -->
    <div class="with-padding">
        <table id="table-data" class="table table-bordered table-striped table-hover">
            <!-- 表头 -->
            <thead>
            <tr>
                <th class="row-selected row-selected" style="width: 20px">
                    <input class="check-all" type="checkbox"/>
                </th>
                <th>序号</th><th>班级代码</th><th>班级简称</th><th>班级</th><th>班主任</th><th>总人数（男/女）</th><th>创建时间</th><th>操作</th>
                </tr>
            </thead>

            <!-- 列表 -->
            <tbody>
            <volist name="_list" id="v">
                <tr>
                    <td><input class="ids" type="checkbox" value="{$v.id}" name="ids[]"></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$i}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.bj_code}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.bj_name2}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >
                    <a href="{:U('classdetail?id='.$v['id'])}" target="_blank">{$v.bj_name}</a></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.headteacher}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v['woman']+$v['man']}({$v.man}/{$v.woman})</a></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.create_time|date='Y-m-d',###}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" ><a href="{:U('editClass?id='.$v['id'])}">编辑</a> 
                    <a href="{:U('classdelete?id='.$v['id'])}">删除</a>
                   <!--  <a href="/web2016/index.php?s=/admin/student/setclassstatus.html&status=0&ids={$v.id}" class="ajax-get">启用</a> -->
                    </td>
                 </tr>
            </volist>
            </tbody>
        </table>
    </div>






  
</block>